package ui.util;

import java.util.Calendar;

public class CalendarUtil {
	public static String toString(Calendar cal){
		String tMon= "";
		String tDay ="";
		int month =cal.get(Calendar.MONTH)+1;
		int day  = cal.get(Calendar.DATE);
		if (month < 10 )  tMon= "0";				
		if (cal.get(Calendar.DATE)<10) tDay = "0";
		return cal.get(Calendar.YEAR)+"-"+tMon+month +"-"+tDay+day;
	}

}
